﻿<%@ Page Title="CNFI" Language="C#" MasterPageFile="~/Masterpages/Site.Master" AutoEventWireup="true" CodeBehind="ContentsByType.aspx.cs" Inherits="cnFederal.Fa_Forms.ContentsByType" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">


<table width="100%">

<tr> <td>
<asp:UpdatePanel runat="server" id="UpdatePanel2" updatemode="Conditional">
<ContentTemplate>


<asp:ListView ID="listview1"  runat="server"  AutoGenerateColumns="False" AllowPaging="True" PageSize="2" ShowHeader="False" GridLines="None" PagerStyle-HorizontalAlign="Center">
     
        <ItemTemplate>
            <!-- NyhetsTabell -->
            <table class="newscontentsTable" border="0" cellpadding="5" cellspacing="0" style="border-width:0;">
            <tr>
                <!-- Tittel -->
                <td class="newscontentsTitleCell">
                    <table border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td class="newscontentsTitleDate" align="left">
                            <asp:Label ID="Label6" runat="server" Text='<%# GetShortDate(Convert.ToString(Eval("DateStartPublish"))) %>'></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="Label1" runat="server" Text='<%# Eval("Title") %>' CssClass="newscontentsTitle"></asp:Label>
                        </td>
                    </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <!-- Innhold -->
                <td align="right" valign="top">
                    <table border="0" cellpadding="0" cellspacing="0" style="width:100%;">
                    <tr>
                        <td valign="top" align="right" style="width:100%;border-width:0;">
                        <table style="border-width:0;">
                        <tr>
                         <td valign="top" style="width:80%; height:100px;">
                             <asp:Label ID="Label2" runat="server" Text='<%# Eval("Header") %>' style="overflow:hidden; direction:rtl" ></asp:Label>
                            </td>
                        <td valign="top" style="width:20%; height:100px;"><asp:ImageButton ID="bilde" runat="server" CssClass="newscontentsImage" ImageUrl='<%# Eval("ImageUrl") %>' PostBackUrl='<%# Eval("Id",cnFederal.Common.GetAbsoluteUri("~/Fa-Forms/SelectedContent.aspx") +"?Id={0}") %>' />
                         
                         <asp:LinkButton  ID="LinkButton1" runat="server" Text="ادامه‌ مطلب" PostBackUrl= '<%# Eval("Id",cnFederal.Common.GetAbsoluteUri("~/Fa-Forms/SelectedContent.aspx") +"?Id={0}") %>'></asp:LinkButton>
                
                        </td>
                       
                            
                            </tr>
                        </table>
                            
                          
                        </td>
                    </tr>
                    </table>
                </td>
                <!-- /Innhold -->
            </tr>
          
            </table>
            <!-- /NyhetsTabell -->
        </ItemTemplate>
     
 
        </asp:ListView>

        <br />

          <asp:DataPager ID="DataPager1" runat="server" PagedControlID="listview1" 
            OnPreRender="pager_click" PageSize="30" >
            <Fields>
                <asp:NumericPagerField NextPageText="Neste" PreviousPageText="Forrige" />
            </Fields>
        </asp:DataPager>
        </ContentTemplate>

        
        
</asp:UpdatePanel>
</td></tr>
<tr> <td>



 <table bgcolor="White" width="100%"><tr><td>
  
    </td></tr></table>

</td></tr>
</table>
 







</asp:Content>

